#!/bin/bash

CUR_DIR=`pwd`
SRC="src/main.go"
TARGET="center"

build() {
  GOPATH=$GOPATH:$CUR_DIR
  go build -v -o bin/$TARGET $CUR_DIR/$SRC
}

echo "======== build $TARGET ========"
rm -rf bin/$TARGET
build
echo "========  build successful ========"
